/*******************************************************************************
********************************************************************************
************************ README FOR REPLICATING ********************************
******************** AUER, DANIEL AND SCHAUB, MAX ******************************
*********** MASS EMIGRATION AND THE EROSION OF LIBERAL DEMOCRACY ***************
************************** August 10, 2023 *************************************
********************************************************************************

We use proprietary data from different sources. Below, the sources are listed 
where the data can be obtained, as well as details on the dataset versions 
used and the original variable names.

Original Variables List
--------------------------------------------------------------------------------

ESS rounds 1-9
------------------------------------------------
European Social Survey, 2002-2018
https://www.europeansocialsurvey.org/data/
------------------------------------------------
cntry				year				ctzcntr
imueclt				imdfetn				freehms
v2x_libdem			partyvoted			gndr
vote				ctzship_all			yrbrn
marital_all			eduyrs				pspwght 
pweight				country_name		domicil 
contplt				wrkprty				wrkorg
badge 				sgnptit 			pbldmn 
bctprd 				livecnta 			livecntr 
lrscale				cntbrth 			cntbrtha 
cntbrthb 			cntbrthc 			cntbrthd 
ctzship 			ctzshipa 			ctzshipb
ctzshipc 			ctzshipd 			polintr 
brncntr 			ipcrtiv 			imprich 
ipeqopt 			ipshabt 			impsafe 
impdiff 			ipfrule 			ipudrst 
ipmodst				ipgdtim 			impfree 
iphlppl 			ipsuces 			ipstrgv
ipadvnt 			ipbhprp 			iprspot 
iplylfr 			impenv 				imptrad 
impfun



VDEM v10
------------------------------------------------
Varieties of Democracy Dataset
https://v-dem.net/data/dataset-archive/
------------------------------------------------
v2x_civlib 			v2x_polyarchy 		v2x_libdem  



MANIFESTO v2020
------------------------------------------------
Manifesto Project Dataset
Available: https://manifestoproject.wzb.eu/datasets?archived=yes
! libvote_voted (voting for a liberal party) needs to be merged with ESS
using country-specific party name/abbreviation.
------------------------------------------------
country 			year 				parfam 
per201 				per401 				per414 
per604 				pervote



SOEP v34 (pl hbrutto ppfad pgen)
------------------------------------------------
German Socio-Economic Panel (individual+household data merged on pid and syear)
Request: https://www.diw.de/en/diw_01.c.601584.en/data_access.html
pid 				cid 				hid
syear 				moved_t1 			free_speech_t0
silence_order_t0 	female 				pgpsbil_t0 
moved_before_t0		gap_t0_t1


WORDLBANK
------------------------------------------------
Worldbank Open Data
Available: https://data.worldbank.org/
------------------------------------------------
year				poprur				gdppc
gdpgrowth			pop   				tertenrol
inflation			unempl 				lifexp



GSS v7218
------------------------------------------------
General Social Survey
Available: https://gss.norc.org/Get-The-Data
------------------------------------------------
gssYear 			mobile16 			sex 
age 				marital 			educ 
letin1a 			letin1 				letin 
spkrac 				spkhomo 			thnkself 
obey 				wtssall



WVS v1.6
------------------------------------------------
World Values Sruvey Time Series, 1981 - 2020
Request: https://www.worldvaluessurvey.org/WVSDocumentationWVL.jsp
------------------------------------------------
S003 				X002_02A 			X007 
X002 				X001 				X025R 
S020 				A124_09 			A124_06 
A029 				A042 				E229



CHES v1.3
------------------------------------------------
Chapel Hill Expert Survey—Trend File, 1999 - 2019
Available: https://www.chesdata.eu/1999-2019chestrend
------------------------------------------------
country 			seat 				galtan 
year



EUROSTAT
------------------------------------------------
Available: https://data.europa.eu/data/datasets/dycibsvr4z283jjduwvdaq?locale=en
------------------------------------------------
ceepop 				cee_migrants_total
soc_exp_pc			total_emi

